
$:.push('gen-rb')

require 'thrift'
require 'service__demo'

#transport = Thrift::BufferedTransport.new(Thrift::Socket.new('0.0.0.0', 9090))
transport = Thrift::FramedTransport.new(Thrift::Socket.new('0.0.0.0', 9090))
protocol = Thrift::BinaryProtocol.new(transport)
client = Service_Demo::Client.new(protocol)
transport.open()

for i in 1..100000
  p client.aa
end

transport.close

